package com.zhou.system.management.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 部门下用户的角色
 * </p>
 *
 * @author zxf
 * @since 2023-05-18
 */
@Getter
@Setter
@TableName("sys_dept_user")
@ApiModel(value = "SysDeptUser对象", description = "部门下用户的角色")
public class SysDeptUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "部门id", position = 2)
    @JsonProperty(index = 2)
    private Long deptId;

    @ApiModelProperty(value = "用户id", position = 3)
    @JsonProperty(index = 3)
    private Long userId;

    @ApiModelProperty(value = "角色id", position = 4)
    @JsonProperty(index = 4)
    private Long roleId;

    @ApiModelProperty(value = "岗位id", position = 5)
    @JsonProperty(index = 5)
    private Long postId;

    @ApiModelProperty(value = "人员状态;0:在职 1:离职", position = 6)
    @JsonProperty(index = 6)
    private Integer status;

}
